package com.songcha.module_category.ui.fragment.category_child

import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_business.api.ApiManager
import com.songcha.library_business.bean.banner.BannerBean
import com.songcha.library_business.bean.book.BookListBean
import com.songcha.module_category.api.CategoryApiManager
import com.songcha.module_category.bean.CategoryChannelSubListBean
import io.reactivex.Observable

class CategoryChildRepository:BaseRepository() {
    fun getCategoryChannelSubList(channelId:Int): Observable<CategoryChannelSubListBean> {
        return CategoryApiManager.api.getCategoryChannelSubList(channelId)
    }

    fun getCategoryChannelSubEndBookList(channelId:Int,currentPage:Int): Observable<BookListBean> {
        return CategoryApiManager.api.getCategoryChannelSubEndBookList(channelId,currentPage)
    }

    fun getBanner(type:Int):Observable<BannerBean>{
        return ApiManager.api.getBanner(type)
    }
}